<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-we_title" data-rule="required" class="form-control" name="row[we_title]" type="text" value="{$row.we_title|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_published_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-we_published_time" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[we_published_time]" type="text" value="{:$row.we_published_time?datetime($row.we_published_time):''}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-we_description" data-rule="required" class="form-control" name="row[we_description]" type="text" value="{$row.we_description|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_text')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-we_text" data-rule="required" class="form-control " rows="5" name="row[we_text]" cols="50">{$row.we_text|htmlentities}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_image')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-we_image" data-rule="required" class="form-control" size="50" name="row[we_image]" type="text" value="{$row.we_image|htmlentities}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-we_image" class="btn btn-danger plupload" data-input-id="c-we_image" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-we_image"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-we_image" class="btn btn-primary fachoose" data-input-id="c-we_image" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-we_image"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-we_image"></ul>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_sort')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-we_sort" data-rule="required" class="form-control" name="row[we_sort]" type="number" value="{$row.we_sort|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('We_is_show')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select  id="c-we_is_show" data-rule="required" class="form-control selectpicker" name="row[we_is_show]">
                {foreach name="weIsShowList" item="vo"}
                    <option value="{$key}" {in name="key" value="$row.we_is_show"}selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
